# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=urbanterror-data
pkgver=4.3.4
pkgrel=0
_urtver=43
_urtrev=4
pkgdesc="Urban Terror game data"
url="http://urbanterror.info"
arch="noarch"
license="custom"
source="http://cdn.urbanterror.info/urt/$_urtver/releases/zips/UrbanTerror${_urtver}${_urtrev}_full.zip"
subpackages="$pkgname-doc"
builddir="$srcdir/UrbanTerror${_urtver}"
options="!check" # No tests

package() {
	install -dm755 "$pkgdir"/usr/share/urbanterror/
	install -dm755 "$pkgdir"/usr/share/urbanterror/q3ut4/
	install -dm755 "$pkgdir"/usr/share/doc/urbanterror/
	install -dm755 "$pkgdir"/usr/share/examples/urbanterror/

	install -m644 q3ut4/*.pk3 "$pkgdir"/usr/share/urbanterror/q3ut4/
	install -m644 q3ut4/autoexec_example.cfg \
		"$pkgdir"/usr/share/examples/urbanterror/
	install -m644 q3ut4/mapcycle_example.txt \
		"$pkgdir"/usr/share/examples/urbanterror/
	install -m644 q3ut4/server_example.cfg \
		"$pkgdir"/usr/share/examples/urbanterror/
	install -m644 q3ut4/QIIIA_Game_Source_License.doc \
		"$pkgdir"/usr/share/doc/urbanterror/
	install -m644 q3ut4/readme${_urtver}.txt \
		"$pkgdir"/usr/share/doc/urbanterror/
}

sha512sums="4debd6f998943cf9944ed891a3d1f3fa7d016d181d7af7cd5c28690bcd765928b4befc3f3705a4315bfa709acdd34160ed8f2d7437a54cfd10f6c48fea60af39  UrbanTerror434_full.zip"
